package com.ruoyi.clerkBalanceRecord.mapper;

import com.ruoyi.clerkBalanceRecord.domain.ClerkBalanceRecord;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public interface ClerkBalanceRecordMapper {
    /**
     * 查询余额流水
     *
     * @param id 余额流水主键
     * @return 余额流水
     */
    public ClerkBalanceRecord selectClerkBalanceRecordById(Long id);

    /**
     * 查询余额流水列表
     *
     * @param clerkBalanceRecord 余额流水
     * @return 余额流水集合
     */
    public List<ClerkBalanceRecord> selectClerkBalanceRecordList(ClerkBalanceRecord clerkBalanceRecord);

    /**
     * 新增余额流水
     *
     * @param clerkBalanceRecord 余额流水
     * @return 结果
     */
    public int insertClerkBalanceRecord(ClerkBalanceRecord clerkBalanceRecord);

    /**
     * 修改余额流水
     *
     * @param clerkBalanceRecord 余额流水
     * @return 结果
     */
    public int updateClerkBalanceRecord(ClerkBalanceRecord clerkBalanceRecord);

    /**
     * 删除余额流水
     *
     * @param id 余额流水主键
     * @return 结果
     */
    public int deleteClerkBalanceRecordById(Long id);

    /**
     * 批量删除余额流水
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteClerkBalanceRecordByIds(Long[] ids);

    /**
     * 批量逻辑删除余额流水
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int logicDeleteClerkBalanceRecord(@Param("array")Long[] ids, @Param("delType")String delType, @Param("delUser")Long delUser);

    BigDecimal selectData(@Param("storeUserId") Long storeUserId, @Param("createTime") Date date);
}
